# Contributor: Eloi Torrents <eloitor@disroot.org>
# Maintainer: Eloi Torrents <eloitor@disroot.org>
pkgname=mnemosyne
pkgver=2.10.1
pkgrel=1
pkgdesc="Flash-card tool with a sophisticated card review algorithm"
url="https://mnemosyne-proj.org"
# py3-pyqt6-webengine
arch="x86_64 aarch64"
license="GPL-3.0 AND AGPL-3.0-or-later"
depends="
	py3-argon2-cffi
	py3-cherrypy
	py3-google-trans-new
	py3-gtts
	py3-matplotlib
	py3-pillow
	py3-pyqt6-webengine
	py3-qt6
	py3-urllib3
	py3-webob
	python3
	qt6-qtbase-sqlite
	"
makedepends="
	py3-setuptools
	"
subpackages="$pkgname-lang $pkgname-pyc"
source="https://downloads.sourceforge.net/mnemosyne-proj/Mnemosyne-$pkgver.tar.gz
	fix-loading-icons.patch
	"
builddir="$srcdir/Mnemosyne-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
	mkdir -p "$pkgdir"/usr/share/mnemosyne
	mv "$pkgdir"/usr/pixmaps "$pkgdir"/usr/share/mnemosyne/
}

sha512sums="
84b33186c20c1741c2ce305ec8f49eae5bca9a5f519f68bbbc8d5a7d60b0bee927b20c8682bfe309f00269e89364e0fc64a0c2edae880f8ef991123918c40475  Mnemosyne-2.10.1.tar.gz
62d57b6aaec59c011cc1fa0706e2e3adfc460d431e49f597b13a21f584490188c46daff798917c3fd889c235a5f181bc607f2b9362e80a76c25d25078b760dd1  fix-loading-icons.patch
"
